package com.jb.repair.model;

import java.io.Serializable;

/**
 * Created by gaobin on 2015/11/3.
 */
public class LedgerModelTest implements Serializable {

   private SbsModel ledgerModel;
    private int level;
    private String id;
    private String parentId;
    private boolean hasChildren;
    private boolean isExpanded;
    public static final String NO_PARENT = String.valueOf(-1);
    public static final int TOP_LEVEL = 0;
    private String layerCode;

    public LedgerModelTest(SbsModel ledgerModel, int level, String id, String parentId,
                           boolean hasChildren, boolean isExpanded, String layerCode) {
        super();
        this.ledgerModel = ledgerModel;
        this.level = level;
        this.id = id;
        this.parentId = parentId;
        this.hasChildren = hasChildren;
        this.isExpanded = isExpanded;
        this.layerCode=layerCode;
    }

    public boolean isExpanded() {
        return isExpanded;
    }

    public void setExpanded(boolean isExpanded) {
        this.isExpanded = isExpanded;
    }

    public SbsModel getContentText() {
        return ledgerModel;
    }

    public void setContentText(SbsModel ledgerModel) {
        this.ledgerModel = ledgerModel;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getId() {
        return id;
    }
    public String getLayerCode(){
        return layerCode;
    }
    public void setLayerCode(String layerCode){
        this.layerCode= layerCode;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public boolean isHasChildren() {
        return hasChildren;
    }

    public void setHasChildren(boolean hasChildren) {
        this.hasChildren = hasChildren;
    }
}